package cn.DataResourceSecondComponent.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@TableName(value = "student")
public class Student implements Serializable {
    @TableId(type = IdType.UUID)
    private String uid;
    private String name;
    private Integer age;
    private Integer classId;
}
